﻿using EMRView.Extensions.HCAttribute;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace EMRView.Extensions.Command.StandardCommand.File
{
    [Command(CommandType.文件, "HideTrace", "隐藏/显示痕迹")]
    public class HideTraceCommand : BaseCommand
    {
        public override Icon CommandIcon
        {
            get
            {
                return Properties.HCResource.痕迹;
            }
        }
        public override object Execute(HCEmrView _view, bool showDefaultUI = false, params object[] para)
        {
            if (_view.HideTrace != !_view.HideTrace)
                _view.HideTrace = !_view.HideTrace;
            return null;
        }

        public override void InitControl(object control)
        {

        }
    }
}
